package com.ehcache.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ehcache.entity.UserEntity;
import com.ehcache.service.UserService;

@RestController
public class UserController {
	@Autowired
	private UserService userService;
	@RequestMapping("/selectUserById")
	public UserEntity selectUserById(long id) {
		return userService.selectUserById(id);
	}
	
	@RequestMapping("/remoKey")
	public void remoKey() {
		userService.remoKey();
	}

}
